package com.chinasoft.tw.service.student60;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class Student60 implements TrueWord{
    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public Student60() {
        this.name = "季乐然";
        wordList.add("今天下课了 ！");
        wordList.add("大家都喜欢玩游戏 ！");
        wordList.add("明天上课 ！");
    }

    @Override
    public Info getTrueWord() {
        Info info = new Info(name, wordList.get(random.nextInt(wordList.size())));
        return info;
    }
}
